package com.ag.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbProposeRecord entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PROPOSE_RECORD", schema = "dbo", catalog = "AGDB")
public class TbProposeRecord implements java.io.Serializable {

	// Fields

	private String newPpId;					//成批id		
	private TbUser tbUserByPrCheckId;	//审核人
	private TbUser tbUserByPrId;			//被审核人
	private TbPropose tbPropose;			//
	private String PComments;				//成批意见
	private String PCommander;				//总指挥
	private String PViceCommander;			//副总指挥
	private String PTeamLeader;				//查控工作组组长
	private String PImplementPlan;			//实施应急预案部门
	private String PAssistDept;				//协助部门
	private Date paTime;					//审核时间
	private String a;
	private String b;
	private String c;
	private String d;
	private String e;
	
	private String f;
	private String h;   //存呈批次数 
	

	private String g;

	// Constructors

	

	/** default constructor */
	public TbProposeRecord() {
	}

	/** minimal constructor */
	public TbProposeRecord(String newPpId) {
		this.newPpId = newPpId;
	}

	/** full constructor */
	public TbProposeRecord(String newPpId, TbUser tbUserByPrCheckId,
			TbUser tbUserByPrId, TbPropose tbPropose, String PComments,
			String PCommander, String PViceCommander, String PTeamLeader,
			String PImplementPlan, String PAssistDept, Date paTime, String a,
			String b, String c, String d, String e) {
		this.newPpId = newPpId;
		this.tbUserByPrCheckId = tbUserByPrCheckId;
		this.tbUserByPrId = tbUserByPrId;
		this.tbPropose = tbPropose;
		this.PComments = PComments;
		this.PCommander = PCommander;
		this.PViceCommander = PViceCommander;
		this.PTeamLeader = PTeamLeader;
		this.PImplementPlan = PImplementPlan;
		this.PAssistDept = PAssistDept;
		this.paTime = paTime;
		this.a = a;
		this.b = b;
		this.c = c;
		this.d = d;
		this.e = e;
	}

	// Property accessors
	@Id
	@Column(name = "NEW_PP_ID", unique = true, nullable = false, length = 10)
	public String getNewPpId() {
		return this.newPpId;
	}

	public void setNewPpId(String newPpId) {
		this.newPpId = newPpId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PR_CHECK_ID")
	public TbUser getTbUserByPrCheckId() {
		return this.tbUserByPrCheckId;
	}

	public void setTbUserByPrCheckId(TbUser tbUserByPrCheckId) {
		this.tbUserByPrCheckId = tbUserByPrCheckId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PR_ID")
	public TbUser getTbUserByPrId() {
		return this.tbUserByPrId;
	}

	public void setTbUserByPrId(TbUser tbUserByPrId) {
		this.tbUserByPrId = tbUserByPrId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PP_ID")
	public TbPropose getTbPropose() {
		return this.tbPropose;
	}

	public void setTbPropose(TbPropose tbPropose) {
		this.tbPropose = tbPropose;
	}

	@Column(name = "P_COMMENTS", length = 4000)
	public String getPComments() {
		return this.PComments;
	}

	public void setPComments(String PComments) {
		this.PComments = PComments;
	}

	@Column(name = "P_COMMANDER", length = 50)
	public String getPCommander() {
		return this.PCommander;
	}

	public void setPCommander(String PCommander) {
		this.PCommander = PCommander;
	}

	@Column(name = "P_VICE_COMMANDER", length = 50)
	public String getPViceCommander() {
		return this.PViceCommander;
	}

	public void setPViceCommander(String PViceCommander) {
		this.PViceCommander = PViceCommander;
	}

	@Column(name = "P_TEAM_LEADER", length = 50)
	public String getPTeamLeader() {
		return this.PTeamLeader;
	}

	public void setPTeamLeader(String PTeamLeader) {
		this.PTeamLeader = PTeamLeader;
	}

	@Column(name = "P_IMPLEMENT_PLAN", length = 500)
	public String getPImplementPlan() {
		return this.PImplementPlan;
	}

	public void setPImplementPlan(String PImplementPlan) {
		this.PImplementPlan = PImplementPlan;
	}

	@Column(name = "P_ASSIST_DEPT", length = 500)
	public String getPAssistDept() {
		return this.PAssistDept;
	}

	public void setPAssistDept(String PAssistDept) {
		this.PAssistDept = PAssistDept;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "PA_TIME", length = 23)
	public Date getPaTime() {
		return this.paTime;
	}

	public void setPaTime(Date paTime) {
		this.paTime = paTime;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@Column(name = "D", length = 60)
	public String getD() {
		return this.d;
	}

	public void setD(String d) {
		this.d = d;
	}

	@Column(name = "E", length = 60)
	public String getE() {
		return this.e;
	}

	public void setE(String e) {
		this.e = e;
	}

	@Column(name = "F", length = 4000)
	public String getF() {
		return f;
	}

	public void setF(String f) {
		this.f = f;
	}
	
	@Column(name = "G", length = 4000)
	public String getG() {
		return g;
	}

	public void setG(String g) {
		this.g = g;
	}
	
	@Column(name = "H", length = 5)
	public String getH() {
		return h;
	}
	
	public void setH(String h) {
		this.h = h;
	}
}